# -*- coding: utf-8 -*-

def is_palindrome(n):

	m,x=0,n
	while x>10:
		m=10*m+x%10
		x=x//10
	m=10*m+x

	return m==n and n>10

output = filter(is_palindrome, range(1, 1000))
print(list(output))